package com.jarchie.htgl.greendao;

/**
 * Created by Jarchie on 2017\12\7.
 * 数据库管理类
 */

public class GreenDaoManager {
    private static GreenDaoManager mInstance;

    private GreenDaoManager() {
    }

    //采用双重校验锁的单例模式返回本类对象
    public static GreenDaoManager getInstance() {
        if (mInstance == null) {
            synchronized (GreenDaoManager.class) {
                mInstance = new GreenDaoManager();
            }
        }
        return mInstance;
    }

}
